@import './media800.less';
@import './media1580.less';
@import './component.less';

//layout
.layout {
  width: 100%;
  overflow-x: hidden;

  a {
    color: @h-color;
    text-decoration: none;
  }
  // nav
  .nav {
    overflow: hidden;
    background-color: #fff;
    width: 100%;
    line-height: 40px;
    text-align: center;
    position: relative;
    z-index: 100;
    .ant-menu-horizontal {
      border-bottom: 0px;
      background-color: transparent;
      display: inline-block;
      padding: 0;
      width: 1200px;
      .ant-menu-item-active::after,
      .ant-menu-item::after,
      .ant-menu-item:hover:after,
      .ant-menu-submenu::after {
        border-bottom: 0px;
      }
      .ant-menu-item-selected {
        color: #333;
        &::after {
          content: '';
          display: block;
          position: absolute;
          left: 50%;
          top: 50%;
          margin-left: -16px;
          margin-top: -16px;
          width: 32px;
          height: 32px;
          border-radius: 50%;
          background-color: @h-bg-color;
          z-index: -1;
        }
      }
      .ant-menu-title-content {
        font-size: 20px;
        font-weight: bold;
        vertical-align: middle;
      }
    }
  }
  // content
  .content {
    height: @h-hight;
    .home {
      overflow: hidden;
      background-color: @h-color;
      height: 100%;
      // footer
      .footer {
        text-align: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        line-height: 26px;
        a,
        span {
          color: #fff;
        }
      }
    }
    .h-body {
      background-image: url('https://cos.han96.com/blog/style/background2');
      background-size: cover;
      background-repeat: no-repeat;
      background-attachment: fixed;
      position: relative;
      height: 100%;
      .cont {
        box-sizing: border-box;
        margin: 0 auto;
        position: relative;
        height: 100%;

        // mark
        .mark {
          box-sizing: border-box;
          padding: 30px 60px;
          height: 100%;
          .mark-list {
            border-radius: 20px;
            border: 1px solid #333;
            overflow: hidden;
            height: 100%;
            .mark-list-titles {
              text-align: center;
              background-color: @h-color;
              font-weight: bold;
              line-height: 40px;
              font-size: 20px;
              color: #fff;
              border-bottom: 1px solid #333;
            }
            .mark-list-cont {
              height: calc(100% - 60px);
              overflow-y: auto;
              padding: 10px;
              background-color: @h-bg-color-w;
              .mark-list-page {
                padding: 0 10px;
                margin-bottom: 20px;
                .mark-list-page-title {
                  font-weight: bold;
                  font-size: 20px;
                  line-height: 40px;
                }
                .mark-list-page-msg {
                  vertical-align: middle;
                  line-height: 26px;
                  span {
                    margin-right: 8px;
                    font-weight: bold;
                  }
                }
              }
              .mark-list-page-select {
                border-right: 6px solid @h-color;
              }
              #my-editor {
                background-color: unset;
                padding: 0 20px;
              }
              .mark-dtl-CC {
                padding: 10px 20px;
                margin-top: 20px;
                border-top: 3px solid @h-color;
                line-height: 28px;
              }
              .mark-classify {
                margin-bottom: 20px;
                text-align: center;
              }
            }
          }
          .mark-dtl {
            margin-left: 30px;
          }
        }

        // bilibili
        .bili {
          height: 100%;
          overflow-y: auto;
          .bili-box {
            width: 900px;
            margin: 40px auto;
            .bili-tag {
              padding-bottom: 20px;
            }
            .bili-list {
              background-color: #fff;
              border-radius: 10px;
              overflow: hidden;

              .bili-list-img {
                text-align: center;
                position: relative;

                .bili-list-imgbg {
                  width: 100%;
                  height: 214px;
                }

                .bili-list-img-ep {
                  position: absolute;
                  left: 0;
                  bottom: 0;
                  width: 100%;
                  background-color: @h-color;
                  opacity: 0.8;
                  color: #fff;
                  padding: 2px 0;
                }

                .bili-list-img-type {
                  position: absolute;
                  left: 10px;
                  top: 10px;
                  background-color: @h-color;
                  opacity: 0.8;
                  color: #fff;
                  padding: 2px 6px;
                  font-size: 12px;
                  border-radius: 6px;
                }
              }

              .bili-list-name {
                text-align: center;
                font-weight: bold;
                line-height: 28px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                padding: 0 10px;
                vertical-align: baseline;
                word-break: break-word;
              }

              .bili-list-dec {
                font-size: 12px;
                color: #999;
                text-align: center;
                padding-bottom: 10px;
                min-height: 28px;
              }
            }

            .bili-list-page {
              text-align: center;
              margin-top: 40px;
            }
          }
        }

        // comment
        .comment {
          height: 100%;
          overflow-y: auto;
          .comment-box {
            width: 900px;
            margin: 40px auto;
            .comment-dec {
              margin-bottom: 60px;
              .comment-dec-me {
                .comment-dec-me-item {
                  padding: 10px 0;
                  b {
                    color: @h-color;
                    margin-right: 10px;
                  }
                }
                .comment-dec-me-p {
                  display: inline-block;
                  margin-left: 10px;
                  margin-bottom: 0;
                }
              }

              .comment-dec-cont {
                font-size: 20px;
                font-weight: bold;
                text-align: center;
                color: @h-color;
              }

              .comment-friend {
                margin-top: 30px;
                padding-bottom: 30px;

                .comment-card {
                  text-align: center;
                  border-radius: @h-border-radius;
                  padding: 20px 0;
                  background-color: @h-bg-color-w;
                  .comment-card-name {
                    line-height: 30px;
                    margin-top: 8px;
                  }
                }
              }
            }

            .comment-list {
              .comment-list-title {
                line-height: 60px;
                text-align: center;
                color: #333;
                font-size: 20px;
                font-weight: bold;
              }

              .comment-list-item {
                margin-bottom: 30px;

                .comment-list-reply {
                  border: 1px solid @h-border-color;
                  border-radius: @h-border-radius;
                  overflow: hidden;
                  background-color: @h-bg-color-w;

                  .comment-list-reply-top {
                    border-bottom: 1px solid @h-border-color;
                    padding: 8px 20px;
                    background-color: #f6f8fa;

                    .comment-list-name {
                      font-weight: bold;
                    }

                    .comment-list-time {
                      padding-left: 12px;
                    }

                    .comment-list-btn {
                      float: right;
                    }
                  }

                  .comment-list-content {
                    padding: 8px 20px;
                    margin-top: 5px;
                    display: inline-block;
                    width: auto;
                  }

                  .comment-list-child {
                    padding: 20px;

                    .comment-list-item {
                      margin-bottom: 15px;

                      .comment-list-avatar {
                        width: 40px;
                        height: 40px;
                      }

                      .comment-list-reply {
                        .comment-list-reply-top {
                          padding: 4px 20px;
                        }
                      }

                      .comment-list-content {
                        padding: 4px 20px;
                      }
                    }
                  }
                }
              }

              .comment-list-comment {
                padding-top: 30px;
              }
            }
          }
        }

        //me
        .me {
          height: 100%;
          overflow-y: auto;
          .me-box {
            width: 900px;
            margin: 40px auto;
            .me-list {
              margin-bottom: 60px;
              text-align: center;
              .me-title {
                font-size: 20px;
                display: inline-block;
                border-top-right-radius: @h-border-radius;
                border-bottom-right-radius: @h-border-radius;
                border: 1px solid @h-color;
                background-color: @h-bg-color;
                color: #fff;
                padding-right: 30px;
                padding-left: 10px;
                margin-bottom: 20px;
              }

              .me-content {
                .me-content-list {
                  padding: 10px 0px;
                  .me-content-list-title {
                    margin-right: 20px;
                    color: @h-color;
                    font-size: 16px;
                  }
                }
              }
            }
          }
        }

        // say
        .say {
          height: 100%;
          overflow: hidden;
          .say-box {
            width: 900px;
            margin: 40px auto;
            .say-list-time {
              color: @h-color;
              margin-bottom: 14px;
              font-weight: bold;
            }
            .say-list-more {
              font-size: 16px;
              font-weight: bold;
              color: @h-color;
            }
          }
        }
      }
    }
  }
  // aboutMe
  .about {
    background-color: #fff;
    border-radius: @h-border-radius;
    backdrop-filter: blur(5px);
    overflow: hidden;
    padding: 10px;
    width: 300px;
    margin: 10vh auto;

    .about-header {
      img {
        width: 100%;
        height: auto;
      }
    }

    .about-user {
      text-align: center;
      color: rgba(0, 0, 0, 0.4);

      span {
        color: rgba(0, 0, 0, 0.85);
        font-size: 26px;
        font-weight: bold;
        line-height: 58px;
      }

      div {
        color: @h-color;
      }
    }

    .about-link {
      display: flex;
      margin-top: 20px;
      text-align: center;

      .about-link-btn {
        flex: 1;

        span {
          font-size: 34px;
        }
      }
    }
  }

  // listen
  .listen {
    margin-top: 30px;
    border-radius: @h-border-radius;
    backdrop-filter: blur(5px);
    overflow: hidden;
    padding: 10px;

    .aplayer {
      box-shadow: unset;

      .aplayer-info {
        border-bottom: unset;
      }
    }
  }

  // welcome
  .welcome {
    margin-top: 30px;
    border-radius: @h-border-radius;
    backdrop-filter: blur(5px);
    overflow: hidden;
    padding: 10px;

    .welcome-day {
      text-align: center;

      div {
        line-height: 26px;
      }

      span {
        color: @h-color;
      }
    }
  }
}

.about-link-cont {
  img {
    width: 100px;
    height: 100px;
  }
}
